<template>
  <div>
    <view-table
      need-login
      title="报表固定资产信息"
      api-view="getDetailAssetReport"
      api-res-key="report"
      :usci="usci"
      :columns="reportColumn"
    ></view-table>

    <view-table
      need-login
      title="土地资产信息"
      api-view="getDetailAssetSoil"
      api-res-key="soil"
      :usci="usci"
      :columns="soilColumn"
    ></view-table>

    <view-table
      need-login
      title="车辆资产信息"
      api-view="getDetailAssetCar"
      api-res-key="car"
      :usci="usci"
      :columns="carColumn"
    ></view-table>

    <view-table
      need-login
      title="企业动产信息"
      api-view="getDetailAssetEntdynamic"
      api-res-key="entDynamic"
      :usci="usci"
      :columns="entDyanmicColumn"
    ></view-table>

    <h4 class="company-section-title">知识产权信息</h4>

    <view-table
      need-login
      title="行政许可信息"
      api-view="getDetailAssetPropertylicense"
      api-res-key="propertyLicense"
      :usci="usci"
      :columns="licenseColumn"
    >
      <template #title="{ title }">
        <h5 class="fw-bold fs-0">（一）{{ title }}</h5>
      </template>
    </view-table>

    <view-table
      need-login
      title="企业获奖情况"
      api-view="getDetailAssetEntaward"
      api-res-key="entAward"
      :usci="usci"
      :columns="awardColumn"
    >
      <template #title="{ title }">
        <h5 class="fw-bold fs-0">（一）{{ title }}</h5>
      </template>
    </view-table>
  </div>
</template>

<script>
import ViewTable from '@/credit/views/county/finance/components/ViewTable.vue'

export default {
  components: {
    ViewTable,
  },
  props: {
    baseInfo: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {
      reportColumn: [
        { label: '序号', prop: 'order_num' },
        { label: '年份', prop: 'NF' },
        { label: '金额', prop: 'JE' },
      ],

      soilColumn: [
        { label: '序号', prop: 'order_num' },
        { label: '债务履行起始时间', prop: 'ZWLXQSSJ' },
        { label: '债务履行结束时间', prop: 'ZWLXQSSJ' },
        { label: '土地证号', prop: 'TDZH' },
        { label: '坐落', prop: 'ZL' },
        { label: '面积', prop: 'MJ' },
        { label: '权利性质', prop: 'QLXZ' },
        { label: '抵押人名称', prop: 'DYRMC' },
        { label: '他项权证号', prop: 'TXQZH' },
        { label: '抵押面积', prop: 'DYMJ' },
        { label: '抵押金额', prop: 'DYJE' },
      ],

      carColumn: [
        { label: '序号', prop: 'order_num' },
        { label: '号牌号码', prop: 'HPHM' },
        { label: '使用性质', prop: 'SYXZ' },
      ],

      entDyanmicColumn: [
        { label: '序号', prop: 'order_num' },
        { label: '抵押登记时间', prop: 'DYDJSJ' },
        { label: '抵押注销时间', prop: 'DYZXSJ' },
        { label: '抵押人', prop: 'DYR' },
        { label: '抵押人证件号', prop: 'DYRZJH' },
        { label: '抵押人类别', prop: 'DYRLB' },
        { label: '公示时间', prop: 'GSSJ' },
      ],

      licenseColumn: [
        { label: '序号', prop: 'order_num' },
        { label: '行政许可决定文书号', prop: 'XZXKJDWSH' },
        { label: '许可类别', prop: 'XKLB' },
        { label: '许可内容', prop: 'XKNR' },
        { label: '许可决定日期', prop: 'XKJDRQ' },
        { label: '有效期自', prop: 'YXQKS' },
        { label: '有效期至', prop: 'YXQJS' },
        { label: '许可机关', prop: 'XKJG' },
        { label: '无效日期', prop: 'WXRQ' },
        { label: '无效原因', prop: 'WXYY' },
      ],

      awardColumn: [
        { label: '获奖年度', prop: 'HJND' },
        { label: '序号', prop: 'order_num' },
        { label: '获奖名称', prop: 'HJMC' },
        { label: '项目名称', prop: 'XMMC' },
        { label: '主要完成单位', prop: 'ZYWCDW' },
        { label: '主要完成人', prop: 'ZYWCR' },
      ],
    }
  },
  computed: {
    usci() {
      return this.baseInfo.TYSHXYDM
    },
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style lang="scss" scoped></style>
